package com.stlm2.dems.entity;

/**
 * Created by fusyunu on 2016/11/2.
 */
public enum ShopType {
	ZiYing(1) {
		public String toString() {
			return "自营";
		}
	},
	TaYing(2) {
		public String toString() {
			return "他营";
		}
	};

	private final int val;

	ShopType(int n) {
		val = n;
	}

	public int getIntValue() {
		return val;
	}

	public static ShopType getByIntValue(int n) {
		switch (n) {
			case 1:
				return ZiYing;
			case 2:
				return TaYing;
			default:
				return null;
		}
	}
}
